/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2022-11-10
 * Time: 17:47
 */

public class Demo2 {
    public int Add(int num1,int num2) {
        int n = 0 ;
        while(num1 != 0) {

            int a = (num1 & num2) << 1;
            int b  = num2 ^ num1;
            num1 = a;
            num2 = b;
        }
        return num2;
    }
}
